package com.leetroll.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("public.user_action")
@NoArgsConstructor
public class UserAction extends SuperEntity {

    //用户id
    private Long userId;
    //itemId
    private Long itemId;
    //动作
    private String action;

    private Boolean value = true;

    public UserAction(Long userId, Long itemId, String action) {
        this.userId = userId;
        this.itemId = itemId;
        this.action = action;
    }
}
